<?php

class Application_Model_DbTable_PriceHandles extends Zend_Db_Table_Abstract
{
    protected $_name = 'price_handles';
    protected $_primary = 'id';
    protected static $nameRows = array(
        'id',
        'handle_spec_id',
        'price_system_id',
        'price',
        'cost'
    );
    
    public static function getRowNames(){
        return Application_Model_DbTable_PriceHandles::$nameRows;
    }
    
    protected $_referenceMap	= array(
		'HandleSpec' => array(
			'columns'			=> 'handle_spec_id',
			'refTableClass'		=> 'Application_Model_DbTable_HandleSpecs',
			'refColumns'		=> 'id',
            'onDelete'          => self::CASCADE
		),
        'PriceSystem' => array(
			'columns'			=> 'price_system_id',
			'refTableClass'		=> 'Application_Model_DbTable_PriceSystems',
			'refColumns'		=> 'id'
		)
	);
}

